﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace GlyphMaster
{
	public partial class GlyphItem : UserControl
	{
        private Glyph _glyph;
		public GlyphItem(Glyph glyph)
		{
			// Required to initialize variables
			InitializeComponent();
            _glyph = glyph;
            SetText();
		}

        private void SetText()
        {
            txtOriginal.Text = _glyph.originalChar;
            txtTranslation.Text = _glyph.transLiteration;
            ToolTipService.SetToolTip(LayoutRoot, _glyph.description);
        }

	}
}